import request from "../utils/request";
// 所有关于课程列表的接口
export function _getCourseList(data) {
  return request("/VueHandler/CourseHandler?action=show", "post", data);
}
// 课程删除接口
export function _delCourse(_id) {
  return request("/VueHandler/CourseHandler?action=delete", "post", {
    _id: _id,
  });
}
// 课程上架下架接口
export function _goShop(ID) {
  return request("/VueHandler/CourseHandler?action=state", "post", {
    ID: ID,
  });
}
// 课程的置顶接口
export function _topCourse(ID) {
  return request("/VueHandler/CourseHandler?action=top", "post", {
    ID: ID,
  });
}
